//
//  Test.h
//  MozaFFmpeg
//
//  Created by Michael on 2020/8/21.
//

#import <Foundation/Foundation.h>

@interface MozaFFmpeg : NSObject

+ (void)idrToJpgFromSrc:(NSString *)src dst:(NSString *)dst completion:(void (^)(UIImage *image, int ret))completion;

/**
 * arguments[0] = "ffmpeg";
   arguments[1] = "-i";
   arguments[2] = (char *)[src UTF8String];
   arguments[3] = "-r";
   arguments[4] = "1";
   arguments[5] = "-f";
   arguments[6] = "image2";
   arguments[7] = (char *)[dst UTF8String];
 });
 */
+ (void)runCmdWithArgs:(NSArray<NSString *> *)args completion:(void (^)(int ret))completion;

@end
